package org.flint92.springboot.test.configuration;

import org.flint92.springboot.test.domain.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author flint92
 */
@Configuration
public class PersonConfiguration {

    @Bean("primaryPerson")
    @Primary
    public Person primaryPerson() {
        Person p = new Person();

        p.setId(1L);
        p.setName("flint");
        p.setAge(18);

        return p;
    }

}
